package com.niguang.govt.admin.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 个人向企业报名
 * </p>
 *
 * @author 12380
 * @since 2018-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work_enlist")
public class Enlist extends Model<Enlist> {

    public static final String ID = "id";
    public static final String PERSONAL_RELEASE_ID = "personal_release_id";
    public static final String COMPANY_RELEASE_ID = "company_release_id";
    public static final String CREATE_TIME = "create_time";
    public static final String DEL_FLAG = "del_flag";
    public static final String USER_ID = "user_id";
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    private Long id;
    /**
     * 个人发布消息id
     */
    private Long personalReleaseId;
    /**
     * 企业发布消息id
     */
    private Long companyReleaseId;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 删除标识 0-未删除 1-已删除
     */
    @TableLogic
    private Integer delFlag;
    /**
     * 个人用户id
     */
    private Long userId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
